package com.kira.back.service;

import com.kira.back.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
* @author Administrator
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2025-03-20 15:35:08
*/
public interface UserService extends IService<User> {


    /**
     * 用户注册
     * @param loginAccount 登录账户
     * @param loginPassword 登录密码
     * @param checkPassword 检查密码
     * @return 新用户 id
     */
    long userRegister(String loginAccount, String loginPassword, String checkPassword);

    /**
     * 用户登录
     *
     * @param loginAccount  账号登录
     * @param loginPassword 登录密码
     * @param request 请求
     * @return 用户信息
     */
    User userLogin(String loginAccount, String loginPassword, HttpServletRequest request);

    User getSafetyUser(User originUser);
}
